(self.webpackChunk=self.webpackChunk||[]).push([["910"],{1361:function(t){var e=4,i=.001,r=1e-7,s=10,n=11,a=.1,o="function"==typeof Float32Array;function h(t,e){return 1-3*e+3*t}function l(t,e){return 3*e-6*t}function p(t){return 3*t}function f(t,e,i){return((h(e,i)*t+l(e,i))*t+p(e))*t}function u(t,e,i){return 3*h(e,i)*t*t+2*l(e,i)*t+p(e)}function c(t,e,i,n,a){var o,h,l=0;do(o=f(h=e+(i-e)/2,n,a)-t)>0?i=h:e=h;while(Math.abs(o)>r&&++l=i?m(e,p,t,r):0===f?p:c(e,s,s+a,t,r)}return function(i){return t===e&&r===s?i:0===i?0:1===i?1:f(p(i),e,s)}}},8439:function(t,e,i){var r=i(3442),s=i(3422),n=i(8295),a=r.TypeError;t.exports=function(t){if(s(t))return t;throw a(n(t)+" is not a function")}},7759:function(t,e,i){var r=i(3608),s=i(9638),n=i(5827),a=r("unscopables"),o=Array.prototype;void 0==o[a]&&n.f(o,a,{configurable:!0,value:s(null)}),t.exports=function(t){o[a][t]=!0}},287:function(t,e,i){var r=i(3442),s=i(3292),n=r.String,a=r.TypeError;t.exports=function(t){if(s(t))return t;throw a(n(t)+" is not an object")}},9373:function(t,e,i){"use strict";var r=i(4026),s=i(2631),n=i(8281),a=i(6990),o=i(958),h=i(306),l=i(5963),p=i(7755),f=i(9642),u=i(3608),c=i(7769),m=i(3488).toArray,d=u("asyncIterator"),g=p("Array").values;t.exports=function(t){var e=this,i=arguments.length,p=i>1?arguments[1]:void 0,u=i>2?arguments[2]:void 0;return new(f("Promise"))(function(i){var f=s(t);void 0!==p&&(p=r(p,u));var v=l(f,d),y=v?void 0:h(f)||g,b=n(e)?new e:[];i(m(v?a(f,v):new c(o(f,y)),p,b))})}},4885:function(t){t.exports=function(t,e){for(var i=0,r=e.length,s=new t(r);r>i;)s[i]=e[i++];return s}},4655:function(t,e,i){var r=i(3442),s=i(4026),n=i(6201),a=i(5249),o=i(2631),h=i(5024),l=i(7218),p=i(9638),f=i(4885),u=r.Array,c=n([].push);t.exports=function(t,e,i,r){for(var n,m,d,g=o(t),v=a(g),y=s(e,i),b=p(null),x=l(v),_=0;x>_;_++)(m=h(y(d=v[_],_,g)))in b?c(b[m],d):b[m]=[d];if(r&&(n=r(g))!==u)for(m in b)b[m]=f(n,b[m]);return b}},6030:function(t,e,i){var r=i(4920),s=i(9892),n=i(7218),a=function(t){return function(e,i,a){var o,h=r(e),l=n(h),p=s(a,l);if(t&&i!=i){for(;l>p;)if((o=h[p++])!=o)return!0}else for(;l>p;p++)if((t||p in h)&&h[p]===i)return t||p||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3539:function(t,e,i){var r=i(4026),s=i(6201),n=i(5249),a=i(2631),o=i(7218),h=i(8004),l=s([].push),p=function(t){var e=1==t,i=2==t,s=3==t,p=4==t,f=6==t,u=7==t,c=5==t||f;return function(m,d,g,v){for(var y,b,x=a(m),_=n(x),A=r(d,g),k=o(_),w=0,P=v||h,C=e?P(m,k):i||u?P(m,0):void 0;k>w;w++)if((c||w in _)&&(b=A(y=_[w],w,x),t))if(e)C[w]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:l(C,y)}else switch(t){case 4:return!1;case 7:l(C,y)}return f?-1:s||p?p:C}};t.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6),filterReject:p(7)}},1924:function(t,e,i){var r=i(3442),s=i(6937),n=i(8281),a=i(3292),o=i(3608)("species"),h=r.Array;t.exports=function(t){var e;return s(t)&&(n(e=t.constructor)&&(e===h||s(e.prototype))?e=void 0:a(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?h:e}},8004:function(t,e,i){var r=i(1924);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},9022:function(t,e,i){"use strict";var r=i(9642),s=i(6201),n=i(8439),a=i(7218),o=i(2631),h=i(8004),l=r("Map"),p=l.prototype,f=s(p.forEach),u=s(p.has),c=s(p.set),m=s([].push);t.exports=function(t){var e,i,r,s=o(this),p=a(s),d=h(s,0),g=new l,v=null!=t?n(t):function(t){return t};for(e=0;e
l&&v)throw p("The allowed number of iterations has been exceeded");m.resolve(a(s(d,t))).then(function(t){try{if(a(t).done)e?(c.length=g,n(c)):n(!f&&(r||void 0));else{var s=t.value;v?m.resolve(e?u(s,g):u(s)).then(function(t){i?x():r?t?x():y(n,!1):e?(c[g++]=t,x()):t?y(n,f||s):x()},b):(c[g++]=s,x())}}catch(t){b(t)}},b)}catch(t){b(t)}};x()})}};t.exports={toArray:f(0),forEach:f(1),every:f(2),some:f(3),find:f(4)}},8419:function(t,e,i){var r,s,n=i(3442),a=i(1219),o=i(3422),h=i(9638),l=i(327),p=i(8238),f=i(3608),u=i(3581),c="USE_FUNCTION_CONSTRUCTOR",m=f("asyncIterator"),d=n.AsyncIterator,g=a.AsyncIteratorPrototype;if(g)r=g;else if(o(d))r=d.prototype;else if(a[c]||n[c])try{s=l(l(l(Function("return async function*(){}()")()))),l(s)===Object.prototype&&(r=s)}catch(t){}r?u&&(r=h(r)):r={},o(r[m])||p(r,m,function(){return this}),t.exports=r},9674:function(t,e,i){var r=i(6201),s=r({}.toString),n=r("".slice);t.exports=function(t){return n(s(t),8,-1)}},229:function(t,e,i){var r=i(3442),s=i(4756),n=i(3422),a=i(9674),o=i(3608)("toStringTag"),h=r.Object,l="Arguments"==a(function(){return arguments}()),p=function(t,e){try{return t[e]}catch(t){}};t.exports=s?a:function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=p(e=h(t),o))?i:l?a(e):"Object"==(r=a(e))&&n(e.callee)?"Arguments":r}},5111:function(t,e,i){var r=i(4831),s=i(8620),n=i(5722),a=i(5827);t.exports=function(t,e){for(var i=s(e),o=a.f,h=n.f,l=0;l a?-1:1,l=!0;l;)if(r[n]<=a&&r[n+1]>a?(o=(a-r[n])/(r[n+1]-r[n]),l=!1):n+=h,n<0||n>=s-1){if(n===s-1)return i[n];l=!1}return i[n]+(i[n+1]-i[n])*o}var h=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),s=t.c,n=t.v,a=t.o,o=t.i,h=t._length,l=r.lengths,p=0;for(e=0;e r+i||(n=h.s*s<=r?0:(h.s*s-r)/i,l.push([n,h.e*s>=r+i?1:(h.e*s-r)/i]));return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?1+e:this.s.v<0?0+e:this.s.v+e)>(s=this.e.v>1?1+e:this.e.v<0?0+e:this.e.v+e)){var i=r;r=s,s=i}r=1e-4*Math.round(1e4*r),s=1e-4*Math.round(1e4*s),this.sValue=r,this.eValue=s}else r=this.sValue,s=this.eValue;var r,s,n,a,o,h,l,p,f,u=this.shapes.length,c=0;if(s===r)for(a=0;a=0;a-=1)if((m=this.shapes[a]).shape._mdf){for((d=m.localShapeCollection).releaseShapes(),2===this.m&&u>1?(v=this.calculateShapeEdges(r,s,m.totalShapeLength,x,c),x+=m.totalShapeLength):v=[[y,b]],h=v.length,o=0;o =0||(o[p]=t[p])}return o}function S(t,e,i,r,s,n){for(var a=arguments.length,o=Array(a>6?a-6:0),l=6;l0&&i(p)?e>1?n(p,e-1,i,a,o):r(o,p):a||(o[o.length]=p)}return o}t.exports=n},1:function(t,e,i){t.exports=i(132)()},3406:function(t,e,i){var r=i(1),s=i(7361);t.exports=function(t,e){return t&&r(t,e,s)}},1957:function(t,e,i){var r=i(3835),s=i(8481);t.exports=function(t,e){e=r(e,t);for(var i=0,n=e.length;null!=t&&i1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+i[t]+i[e]+i[r]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var dataManager=function(){var t,e,i=1,r=[],s={onmessage:function(){},postMessage:function(e){t({data:e})}},n={postMessage:function(t){s.onmessage({data:t})}};function a(){e||((e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"});return new Worker(URL.createObjectURL(i))}return t=e,s}(function(t){if(n.dataManager||(n.dataManager=function(){function t(s,n){var a,o,h,l,p,u,c=s.length;for(o=0;o=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(s=t[i].ks.k.length,r=0;r500)&&(this._imageLoaded(),clearInterval(i)),e+=1}).bind(this),50)}function n(t){var e={assetData:t},i=r(t,this.assetsPath,this.path);return dataManager.loadData(i,(function(t){e.img=t,this._footageLoaded()}).bind(this),(function(){e.img={},this._footageLoaded()}).bind(this)),e}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;var i,r=t.length;for(i=0;i0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(u):Math.ceil(u),d=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,x=0;if(u>0){for(;x=0;n-=1)o=PolynomialBezier.shapeSegmentInverted(t,n),l.push(offsetSegmentSplit(o,e));l=pruneIntersections(l);var p=null,f=null;for(n=0;n0&&(p=!1),p){var f=createTag("style");f.setAttribute("f-forigin",r[i].fOrigin),f.setAttribute("f-origin",r[i].origin),f.setAttribute("f-family",r[i].fFamily),f.type="text/css",f.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",e.appendChild(f)}}else if("g"===r[i].fOrigin||1===r[i].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;ie);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],s=0,n=t.length,a=!1,o=!1,h="";ss&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(ns&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===p&&(n>s&&"meet"===o||ns&&"meet"===o||n=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(s)){var o,h=s.length,l=createTypedArray("float32",h);for(o=0;o